package com.pzy.dao;

import com.pzy.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    //增
    boolean addUser(User user);

    //删
    boolean deleteUser(Integer userID);

    //改
    boolean updateUser(User user);

    //查单个
    User getOne(Integer userID);

    //分页查所有
    List<User> getAll();

    //查用户
    User getUser(@Param("userName") String userName, @Param("password") String password);
}
